<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/3
 * Time: 18:38
 */
namespace app\common\help;

class ContractHelp {

   public static function contract_status_desc()
   {
       return [
           CONTRACT_STATUS_INIT => '未收回',
           CONTRACT_STATUS_RECYCLE => '已收回',
           CONTRACT_STATUS_DISCARD => '作废',
       ];
   }

   /*待css样式*/
   public static function contract_status_desc_with_css()
   {
       return [
           CONTRACT_STATUS_INIT => '<span style="color:#30A89D">未收回</span>',
           CONTRACT_STATUS_RECYCLE => '<span style="color:#48AFFC">已收回</span>',
           CONTRACT_STATUS_DISCARD => '<span style="color:#FC754B">作废</span>',
       ];
   }

    /**
     * 订单数据导入excel的表头对应关系
     */
    public static function contractDataExcelHeader()
    {
        return [
            'A' => 'sign_company_code',
            'B' => 'year',
            'C' => 'customer_number',
            'D' => 'class',
            'E' => 'type',
            'F' => 'project_group',
            'G' => 'service_content',
            'H' => 'sale_manager',
            'I' => 'project_name',
            'J' => 'project_manager',
            'K' => 'contract_amount',
            'L' => 'is_include_tax',
            'M' => 'contract_receiver',
        ];
    }
}